{{range .Categories}}
    <span class="cat"><a{{if eq $.CategorySlug .Slug}} class="active"{{end}} href="{{.Link}}">{{i18n $.Lang (print "category." .Name)}}</a></span>
{{end}}